#include <iostream>

class Test
{
public:
    Test() = default; //生成默认的构造函数
    Test(int a)
    {
        this->a = new int(a);
    }
    ~Test()
    {
        delete a;
    }

    Test(const Test& t) = delete; // 删除某个函数
    Test& operator=(const Test& t) = delete;
private:
    int *a;
};

int main()
{
    Test t(1);
    Test t2 ;
    
    return 0;
}